# Makefile for akqueue
CC=gcc
CFLAGS=-Wl,-rpath,/usr/local/libevent-2.0.12-stable/lib/:/usr/local/tokyocabinet-1.4.47/lib/ -L/usr/local/libevent-2.0.12-stable/lib/ -levent -L/usr/local/tokyocabinet-1.4.47/lib/ -ltokyocabinet -I/usr/local/libevent-2.0.12-stable/include/ -I/usr/local/tokyocabinet-1.4.47/include/ -lz -lbz2 -lrt -lpthread -lm -lc -O2 -g 

akqueue: akqueue.c
	$(CC) -o akqueue akqueue.c prename.c $(CFLAGS)
	@echo ""
	@echo "akqueue build complete."
	@echo ""	

clean: akqueue
	rm -f akqueue

install: akqueue
	install $(INSTALL_FLAGS) -m 4755 -o root akqueue $(DESTDIR)/usr/bin
